# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-kerberos
_pkgname=kerberos
pkgver=1.3.0
pkgrel=2
pkgdesc="A Python Kerberos high-level interface"
url="https://pypi.python.org/pypi/kerberos"
arch="all"
license="Apache-2.0"
depends="python3"
makedepends="krb5-dev py3-setuptools python3-dev"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces=py-kerberos # Backwards compatibility
provides=py-kerberos=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="3f861dcb7ed8a1317b9c792c5b3fd00161d6f6539d3f42603ca765d75e105bbcc11d9dcbfdbf90949e0357fcd75a0c4da44ff755f1b26148a86d35e3ed142a1b  kerberos-1.3.0.tar.gz"
